package dss;

/**
 * @author name:dss
 * @version 1.0
 * @description: TODO
 * 用xml的方式实现一下把类交给Spring管理，并给User类注入Dog属性（bean标签、property标签）
 * @date 2022/8/222022/8/22
 */
public class User {
    private String name;
    private Dog dog;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Dog getDog() {
        return dog;
    }

    public void setDog(Dog dog) {
        this.dog = dog;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", dog=" + dog +
                '}';
    }
}
